﻿ @model ThienVienDiDaTu.Models.TinTuc

@{
    ViewBag.Title = "NewNews";
   
}

  



@using (Html.BeginForm("SaveNews", "Test", FormMethod.Post, new {@enctype = "multipart/form-data" , @id = "news-form"}))
{
        @Html.HiddenFor(m => m.ID)
        @Html.TextAreaFor(m => m.NoiDung)    
        <input type="submit" id="save" value="Lưu " style="padding: 2px 10px; margin-right: 5px" />
                       
}

<script type="text/javascript" id="oi">
    $(document).ready(function () {


        function UpdateCKEditors() {
            $('NoiDung').ckeditorGet().updateElement();
        }

        CKEDITOR.replace('NoiDung',
        {
            filebrowserImageUploadUrl: '/Test/UploadImage',
            filebrowserUploadUrl: '/Test/UploadImage'
        });

    });
</script>
